/**
 * @author cct
 * @description 商品
 * @date 2023-2-18
 */
import axiosInstance from "../axiosInstance";

const goodsInfo = {
    querySelectInfo(searchObj) {
        return axiosInstance.post(`/goodFront/all`, searchObj
        )
    },

    findById(id) {
        return axiosInstance.get(`/goodFront/selectGoodInfo`, {
            params: {
                id
            }
        })
    },

    //加入购物车
    putShopCart(id) {
        return axiosInstance.post(`/shopCart/putShopCart?id=${id}`)
    }
}
export default goodsInfo;